# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname="prebootloader"
pkgver="20130206"
pkgrel="2"
pkgdesc="Linux Foundation UEFI secure boot system"
url="http://www.linuxfoundation.org/news-media/blogs/browse/2012/10/linux-foundation-uefi-secure-boot-system-open-source"
arch=('any')
license=('GPL' 'LGPL2.1')
options=('!strip')
source=(http://blog.hansenpartnership.com/wp-uploads/2013/PreLoader.efi
        http://blog.hansenpartnership.com/wp-uploads/2013/HashTool.efi
        http://blog.hansenpartnership.com/wp-uploads/2013/KeyTool.efi)

package() {
	# http://www.rodsbooks.com/efi-bootloaders/secureboot.html#prebootloader
	# http://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git
	# http://blog.hansenpartnership.com/uefi-secure-boot/
	# http://blog.hansenpartnership.com/linux-foundation-secure-boot-system-released
	install -D -m0644 "${srcdir}/PreLoader.efi" "${pkgdir}/usr/lib/prebootloader/PreLoader.efi"
	install -D -m0644 "${srcdir}/HashTool.efi" "${pkgdir}/usr/lib/prebootloader/HashTool.efi"
        install -D -m0644 "${srcdir}/KeyTool.efi" "${pkgdir}/usr/lib/prebootloader/KeyTool.efi"
}
md5sums=('4f7a4f566781869d252a09dc84923a82'
         '45639d23aa5f2a394b03a65fc732acf2'
         'b80145dc9d21c822a14a048f1361e36f')
